

<div class="grid_container">
	<div class="grid_12">
		<div class="widget_wrap">
			<div class="widget_top">
				<span class="h_icon clipboard"></span>
				<h6>Listado de Clientes</h6>
			</div>
			<div class="form_container">
				<ul>
					<li>
						<div class="form_grid_12">
							<div class="form_input">
							<form method="post" action="">
								<div class="form_grid_2 alpha">
                                                                        <input name="ruc" type="text" value="<?php  if(isset($ruc) && $ruc != ''){echo $ruc;}else{ } ?>">
									<span class=" label_intro">Ruc</span>
								</div>
								<div class="form_grid_5 ">
									<input name="name" type="text" value="<?php if(isset($name) && $name != ''){echo $name;}else{  } ?>">
									<span class=" label_intro">Razón Social</span>
								</div>
								
								<div class="form_grid_2 ">
								<input type="submit" class="btn_small btn_blue" value="Buscar">
								</div>
								<span class="clear"></span>
							</form>
							</div>
						</div>
					</li>
				</ul>
			</div>
			<div class="widget_content">
				<table class="wtbl_list">
					<thead>
						<tr>
							<th>Ruc</th>
							<th>Razón Social</th>
							<th>Dirección</th>
							<th>Teléfono / Email</th>
							<th>Opciones</th>
						</tr>
					</thead>
					<tbody>
					<?php $i = 0; ?>
					<?php foreach ($clients as $c) : ?>
					<?php $i++; ?>
						<tr class="">
                                                    <td align="center"><?= $c->ruc; ?></td>
							<td align="center"><?= $c->name; ?></td>
							<td align="center"><?= $c->address; ?></td>
							<td align="center"><?php if ($c->telephone=="" ) {
                                                                echo "---";
                                                        }else{
                                                                echo $c->telephone;
                                                        }?> <br> <?php if ($c->email=="" ) {
                                                                echo "---";
                                                        }else{
                                                                echo $c->email;
                                                        }?></td>
							<td align="center">
                                                            <a class="action-icons c-edit" href="<?php echo base_url(); ?>index.php/clients_2/edit/<?php echo $c->id; ?>" original-title="Editar">Editar</a>
							    
							    <a class="action-icons c-Delete"  href="javascript:confirmar_cliente('<?php echo base_url(); ?>index.php/clients_2/delete/<?php echo $c->id; ?>')" original-title="Borrar">Borrar</a>
							
							</td>
						</tr>
					<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<span class="clear"></span>
</div>
